home *** CD-ROM | disk | FTP | other *** search
/ Team Palmtops 7 / Palmtops_numero07.iso / WinCE / SDKWindowsCE / HandHeldPCPro30 / sdk.exe / Jupiter SDK / data1.cab / MFC_Samples / maths / mathsctl.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1999-02-19  |  1.4 KB  |  61 lines

  1. // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
  2.  
  3. // NOTE: Do not modify the contents of this file.  If this class is regenerated by
  4. //  Microsoft Visual C++, your modifications will be overwritten.
  5.  
  6.  
  7. #include "stdafx.h"
  8. #include "mathsctl.h"
  9.  
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CMathsCtl
  12.  
  13. IMPLEMENT_DYNCREATE(CMathsCtl, CWnd)
  14.  
  15. /////////////////////////////////////////////////////////////////////////////
  16. // CMathsCtl properties
  17.  
  18. OLE_COLOR CMathsCtl::GetBackColor()
  19. {
  20.     OLE_COLOR result;
  21.     GetProperty(DISPID_BACKCOLOR, VT_I4, (void*)&result);
  22.     return result;
  23. }
  24.  
  25. void CMathsCtl::SetBackColor(OLE_COLOR propVal)
  26. {
  27.     SetProperty(DISPID_BACKCOLOR, VT_I4, propVal);
  28. }
  29.  
  30. OLE_COLOR CMathsCtl::GetForeColor()
  31. {
  32.     OLE_COLOR result;
  33.     GetProperty(DISPID_FORECOLOR, VT_I4, (void*)&result);
  34.     return result;
  35. }
  36.  
  37. void CMathsCtl::SetForeColor(OLE_COLOR propVal)
  38. {
  39.     SetProperty(DISPID_FORECOLOR, VT_I4, propVal);
  40. }
  41.  
  42. BOOL CMathsCtl::GetOpposite()
  43. {
  44.     BOOL result;
  45.     GetProperty(0x1, VT_BOOL, (void*)&result);
  46.     return result;
  47. }
  48.  
  49. void CMathsCtl::SetOpposite(BOOL propVal)
  50. {
  51.     SetProperty(0x1, VT_BOOL, propVal);
  52. }
  53.  
  54. /////////////////////////////////////////////////////////////////////////////
  55. // CMathsCtl operations
  56.  
  57. void CMathsCtl::AboutBox()
  58. {
  59.     InvokeHelper(0xfffffdd8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  60. }
  61.